package net.thxjj.adminServer.dao;

import java.util.List;

import net.thxjj.adminServer.util.ParameterMap;
import net.thxjj.sitermodel.Cmdation;
import org.apache.ibatis.annotations.Param;

public interface CmdationDao {
	public List<Cmdation> list(@Param("prod_key")String prod_key);
	public List<Cmdation> listSorted(@Param("prod_key")String prod_key,@Param("id")long id);
	public Cmdation getCmdation(@Param("cmd_id")long cmd_id,@Param("prod_key")String prod_key);
	public void addCmdation(ParameterMap pm);
	public void editCmdation(ParameterMap pm);
	public void deleteCmdation(@Param("cmd_id")long cmd_id,@Param("prod_key")String prod_key);
	public void updateContent(@Param("content")String content,@Param("prod_key")String prod_key,@Param("cmd_id")long cmd_id);
}
